<?php
namespace App\Domain\Appfc114;

use App\Model\Appfc114\SysUser as ModelSysUser;
use Illuminate\Database\Capsule\Manager as DB;



class SysUser  {

    protected $query;

    function __construct() {
        $this->query = new DB();
    }

    public function getDetailByName($user_name){
        $model = new ModelSysUser();
        return $model->getDetailByName($user_name);
    }


    public function getDetail($id,$field="a.id"){
       // $data = $this->FilterField("sys_user",["id"=>11]);
        $model = new ModelSysUser();
        return $model->getDetail($id,$field);
    }

}
